import Api from "./request";

// 获取动态数据
export const getActivityApi = (params) => Api.get("/activity", params);

// 删除动态数据
export const deleteActivityApi = (data) =>
  Api.delete("/activity?id=" + data.id);

// 添加动态数据
export const postActivityApi = (data) => Api.post("/activity", data);

// 修改动态数据
export const updateActivityApi = (data) => Api.put("/activity", data);

// 获取全部列表
export const getActivityListApi = (params) => Api.get("/activity/list", params);

// 获取报名用户信息
export const getActivityApplyUserListApi = (params) =>
  Api.get("/activity/apply/user", params);

// 通过id删除已报名活动用户
export const deleteActivityApplyUserApi = (data) =>
  Api.delete("/activity/apply/user?id=" + data.id);
